package com.example.gyk.neteaseanimation;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.widget.Button;

import com.example.gyk.neteaseanimation.animation.SlideTheCard;
import com.example.gyk.neteaseanimation.speedanimation.CustomSpeedView;

import java.util.Random;

public class MainActivity extends AppCompatActivity {
    private Button bt_slide;
    private Button bt_speed;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        bt_slide = findViewById(R.id.bt_slide);
        bt_speed = findViewById(R.id.bt_speed);
        bt_slide.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, SlideCardActivity.class));
            }
        });
        bt_speed.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(MainActivity.this, SpeedActivity.class));
            }
        });
    }

}